#ifndef RENDERCOMPWIDGET_H
#define RENDERCOMPWIDGET_H

#include <QWidget>
#include <QtGui>
#include "aed_rendercomp.h"
#include "imagemanager.h"
#include "imagemodel.h"
class RenderCompWidget : public QWidget
{
    Q_OBJECT
    ImageManager *m_manager;
    ImageModel *m_imgmodel;
    AED_RenderComp *m_comp;
    QComboBox* m_imagebox;
    QGroupBox* group;
    QPushButton* load_image_button;
    QCheckBox* visiblebox;
    QCheckBox* textbox;
    QDoubleSpinBox* alphabox;
    QSpinBox *layerbox;

public:
    explicit RenderCompWidget(AED_RenderComp *comp, ImageManager *manager, ImageModel *img_model, QWidget *parent = 0);
    void UpdateImageList();

    void setComp(AED_RenderComp *comp);
signals:

public slots:
    void SetImage(const QString &image);
    void SetVisible(int state);
    void SetText(int state);
    void SetLayer(int layer);
    void SetAlpha(double alpha);
    void SetEnabled(bool enabled);
    void LoadImageK();

};

#endif // RENDERCOMPWIDGET_H
